package com.douqu.game.main.server.thread;

import com.douqu.game.core.entity.sprite.Player;
import com.douqu.game.main.server.SpringContext;
import com.douqu.game.main.service.PlayerService;

/**
 * Created by bean on 2017/8/11.
 */
public class SavePlayerThread implements Runnable {

    private Player player;

    public SavePlayerThread(Player player)
    {
        this.player = player;
    }


    @Override
    public void run() {
        PlayerService playerService = SpringContext.getBean(PlayerService.class);
        playerService.update(player);
    }
}
